package com.material.factory.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.material.common.annotation.Excel;
import com.material.common.core.domain.BaseEntity;

/**
 * 工厂燃料品名对象 factory_fuel
 * 
 * @author ruoyi
 * @date 2025-05-07
 */
public class FactoryFuel extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 工厂id */
    @Excel(name = "工厂id")
    private Long factoryId;

    /** 燃料品名 */
    @Excel(name = "燃料品名")
    private String name;

    /** 基准单价（单位：元/吨） */
    @Excel(name = "基准单价", readConverterExp = "单=位：元/吨")
    private BigDecimal price;

    /** 状态：0.删除，1.有效 */
    @Excel(name = "状态：0.删除，1.有效")
    private Integer state;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setFactoryId(Long factoryId) 
    {
        this.factoryId = factoryId;
    }

    public Long getFactoryId() 
    {
        return factoryId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setState(Integer state) 
    {
        this.state = state;
    }

    public Integer getState() 
    {
        return state;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("factoryId", getFactoryId())
            .append("name", getName())
            .append("price", getPrice())
            .append("state", getState())
            .toString();
    }
}
